package com.dongjiantong.sys.service;

import com.dongjiantong.common.model.Response;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.sys.model.DicUnit;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by cao on 2017/11/9.
 */
public interface DicUnitService extends BaseService<DicUnit> {

    DicUnit queryUnitByCode(Integer code);

    DicUnit queryUnitByName(String name);

    PageInfo<DicUnit> getAllList(Integer pageNum, Integer pageSize, Integer animalType, Integer code);

    List<DicUnit> queryListByAnimalType(Integer animalType);

    Response<Boolean> saveUnit(DicUnit dicUnit);
}
